add translation and lowering of OperatorOp#2969
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2969 +/- ##
=======================================
Coverage 96.97% 96.98%
=======================================
Files 166 166
Lines 19209 19243 +34
Branches 1788 1791 +3
=======================================
+ Hits 18628 18662 +34
Misses 429 429
Partials 152 152 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: River McCubbin <river.mccubbin@xanadu.ai>
mudit2812
left a comment
There was a problem hiding this comment.
Looks great Christina, just one blocking comment regarding how we're lowering scalar parameters of qref.operator
|
I'd like to have a look over the changes before merging :) Is it correct that this is only part of the op that is supported? @albi3ro your goal is to a support in stages across multiple prs? |
So #2979 adds specialized lowerings for things that fit CustomOp and all the other specialized ops. In PennyLaneAI/pennylane#9729 and PennyLaneAI/pennylane#9730 Mudit is adding specialized capturing for adjoint and controlled. Following those PR's, we will be able to add lowerings for adjoint and ctrl. Then we will have a follow up for things with python-only data. |
Context:
Now that
Operator2has been added to Pennylane and can be captured into plxpr, it's time to lower it to MLIR.Description of the Change:
Benefits:
Possible Drawbacks:
Had to switch op_name from being a
StrPropto being aStrAttr. Seems to work now.Related GitHub Issues:
[sc-121978] [sc-121484]